<include file="public@meta" />

<body>
hello
<script>
    layui.config({
        base: '__STATIC__/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index', //主入口模块
        layCenter: 'lib/layCenter', //主入口模块
    }).use(['index', 'form','layCenter'], function(){
        var $ = layui.$,
            form = layui.form,
            layCenter = layui.layCenter;

        //监听提交
        form.on('submit(layui-btn-form-submit)', function(data){
            layCenter.FormSubmit("{:url('add')}",data.field,true);
        });

    });
</script>

</body>
</html>